<?php
/**
 * Created By PhpStorm
 * Author: patrick wu
 * Date: 2020/10/12
 * Time: 9:35
 */
namespace App\Http\Model\Mysql;

use Illuminate\Database\Eloquent\Model;

class OrderCommentModel extends Model
{
    const IS_DELETE =   1,      //已删除
        NOT_DELETE  =   0;      //未删除

    protected $table    =   'mini_order_comment';

    protected $guarded  =   [];

    protected $dateFormat   =   'U';

    /**
     * 定义链接用户表
     * @return \Illuminate\Database\Eloquent\Relations\HasOne
     */
    public function user()
    {
        return $this->hasOne(UserModel::class, 'id', 'user_id');
    }

}
